package cahce_user_service

import (
	login_req "go-small-shopping/entity/dto"
)

var userStore = make(map[string]*login_req.LoginUser)
var userTokenStore = make(map[string]string)

func StorUser(md5 string, u *login_req.LoginUser) {
	userStore[md5] = u
}

func StorUserToken(md5 string, token string) {
	userTokenStore[md5] = token
}

func GetUser(md5 string) *login_req.LoginUser {
	return userStore[md5]
}
